package cn.hznc.repository;

import cn.hznc.domain.entity.ToolForkInfoEntity;
import cn.hznc.domain.request.schedule.QryDirectRetrievalReq;
import cn.hznc.vo.DirectRetrievalVo;
import cn.hznc.vo.ToolForkInfoVo;
import cn.hznc.vo.ToolTypeStockVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.stream.Stream;

/**
 * @Author：Administrator
 * @Date：2023/5/6 0:05
 */
public interface ToolForkInfoRespository{
    ToolForkInfoEntity queryPartnoById(Integer toolId);

    List<DirectRetrievalVo> getDirectRetrievalListByToolNo(QryDirectRetrievalReq qryDirectRetrievalReq);

    List<DirectRetrievalVo> getDirectRetrievalList(QryDirectRetrievalReq qryDirectRetrievalReq);

    List<ToolTypeStockVo> countLocationNumber(@Param("type") String type , @Param("date") String date);

    String selectPartTypeByPartno(@Param("partno") String partno);

    List<String> selectPartTypeByPartnoReload(@Param("partno") String partno);

    List<String> selectPartnoByPartType(@Param("partType") String toolType);

    String selectTypeByPartno(@Param("partno") String classify);

    List<DirectRetrievalVo> queryDirectRetrievalListByToolNo(QryDirectRetrievalReq qryDirectRetrievalReq);

    List<DirectRetrievalVo> queryDirectRetrievalListByPartno(QryDirectRetrievalReq qryDirectRetrievalReq);

    BigDecimal selectPriceByPartno(@Param("partno") String partno);

    String selectTypeNameByPartno(@Param("partno") String partno);

    ToolForkInfoVo selectResult(@Param("partno") String partno);

    String selectPartnoById(@Param("id") Integer toolId);

    List<ToolForkInfoEntity> selectIdByPartnos(@Param("partnos") List<String> partnos);

    List<ToolForkInfoEntity> selectByIds(@Param("ids") List<Integer> ids);
}
